package com.example.administrator.testdagger.design;

import android.os.Build;

/**
 * com.example.administrator.testdagger.design
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/6/25 14:42
 * @see com.example.administrator.testdagger.design
 */
public class WifiManager {
    public static WifiInterf mWifiManager;

    public static WifiInterf newInstance() {
        int apiLevel = Build.VERSION.SDK_INT;
        if (apiLevel > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            mWifiManager = new WifiManagerApi20();
        } else {
            mWifiManager = new WifiManagerApi15();
        }
        return mWifiManager;
    }
}
